<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>MCUXpresso SDK API Reference Manual: EPIT: Enhanced Periodic Interrupt Timer</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="fs_logo.gif"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">MCUXpresso SDK API Reference Manual
   &#160;<span id="projectnumber">Rev. 0</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>API&#160;Reference</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__epit.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Data Structures</a> &#124;
<a href="#enum-members">Enumerations</a>  </div>
  <div class="headertitle">
<div class="title">EPIT: Enhanced Periodic Interrupt Timer</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<p>The MCUXpresso SDK provides a driver for the Enhanced Periodic Interrupt Timer (EPIT) of MCUXpresso SDK devices.</p>
<h1><a class="anchor" id="EPITFunc"></a>
Function groups</h1>
<p>The epit driver supports the generation of PWM signals, input capture and setting up the timer match conditions.</p>
<h2><a class="anchor" id="EPITInit"></a>
Initialization and deinitialization</h2>
<p>The function <a class="el" href="group__epit.html#ga2dbbb3bef0505829e167cd8b742f30d4" title="Ungates the EPIT clock and configures the peripheral for a basic operation. ">EPIT_Init()</a> initializes the epit with specified configurations. The function <a class="el" href="group__epit.html#ga7790809531a745f934e7d8fead880f49" title="Fills in the EPIT configuration structure with default settings. ">EPIT_GetDefaultConfig()</a> gets the default configurations. The initialization function configures the restart/free-run mode and input selection when running.</p>
<p>The function <a class="el" href="group__epit.html#gabcd8f38b0c3bc2865022044ee898cd8d" title="Disables the module and gates the EPIT clock. ">EPIT_Deinit()</a> stops the timer and turns off the module clock.</p>
<h1><a class="anchor" id="GptCase"></a>
Typical use case</h1>
<h2><a class="anchor" id="EPITInterruptExample"></a>
EPIT interrupt example</h2>
<p>Set up a channel to trigger a periodic interrupt after every 1 second. </p>
<div class="fragment"><div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">void</span>)</div>
<div class="line">{</div>
<div class="line">    <span class="comment">/* Structure of initialize EPIT */</span></div>
<div class="line">    <a class="code" href="group__epit.html#structepit__config__t">epit_config_t</a> epitConfig;</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Board pin, clock, debug console init */</span></div>
<div class="line">    BOARD_InitHardware();</div>
<div class="line"></div>
<div class="line">    <a class="code" href="group__epit.html#ga7790809531a745f934e7d8fead880f49">EPIT_GetDefaultConfig</a>(&amp;epitConfig);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Init EPIT module */</span></div>
<div class="line">    <a class="code" href="group__epit.html#ga2dbbb3bef0505829e167cd8b742f30d4">EPIT_Init</a>(EXAMPLE_EPIT, &amp;epitConfig);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Set timer period */</span></div>
<div class="line">    <a class="code" href="group__epit.html#ga6a72cfa81566464f3b5ab621aba0c5b2">EPIT_SetTimerPeriod</a>(EXAMPLE_EPIT, USEC_TO_COUNT(1000000U, EXAMPLE_EPIT_CLK_FREQ) - 1);</div>
<div class="line">    <a class="code" href="group__epit.html#gafc188ac8862d933602765cc0f07f5fe7">EPIT_SetOutputCompareValue</a>(EXAMPLE_EPIT, 0);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Enable output compare interrupts */</span></div>
<div class="line">    <a class="code" href="group__epit.html#gae3d3bbc506959dac88740857841c14eb">EPIT_EnableInterrupts</a>(EXAMPLE_EPIT, <a class="code" href="group__epit.html#gga494240f7fd37a8bb050b38327441fda6adf2854965c6baa058801152b3cc26e05">kEPIT_OutputCompareInterruptEnable</a>);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Enable at the Interrupt */</span></div>
<div class="line">    EnableIRQ(EPIT_IRQ_ID);</div>
<div class="line"></div>
<div class="line">    <span class="comment">/* Start Timer */</span></div>
<div class="line">    PRINTF(<span class="stringliteral">&quot;\r\nStarting EPIT timer ...&quot;</span>);</div>
<div class="line">    <a class="code" href="group__epit.html#ga350214fb7f3d87c1578f42e802fc39f0">EPIT_StartTimer</a>(EXAMPLE_EPIT);</div>
<div class="line"></div>
<div class="line">    <span class="keywordflow">while</span> (<span class="keyword">true</span>)</div>
<div class="line">    {</div>
<div class="line">        <span class="comment">/* Check whether occur interupt and toggle LED */</span></div>
<div class="line">        <span class="keywordflow">if</span> (<span class="keyword">true</span> == epitIsrFlag)</div>
<div class="line">        {</div>
<div class="line">            PRINTF(<span class="stringliteral">&quot;\r\n EPIT interrupt is occured !&quot;</span>);</div>
<div class="line">            epitIsrFlag = <span class="keyword">false</span>;</div>
<div class="line">        }</div>
<div class="line">        <span class="keywordflow">else</span></div>
<div class="line">        {</div>
<div class="line">            __WFI();</div>
<div class="line">        }</div>
<div class="line">    }</div>
<div class="line">}</div>
</div><!-- fragment --> <table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:structepit__config__t"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#structepit__config__t">epit_config_t</a></td></tr>
<tr class="memdesc:structepit__config__t"><td class="mdescLeft">&#160;</td><td class="mdescRight">Structure to configure the running mode.  <a href="group__epit.html#structepit__config__t">More...</a><br/></td></tr>
<tr class="separator:structepit__config__t"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:gac239aba2d70353323bb2ca134cf9a6e8"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gac239aba2d70353323bb2ca134cf9a6e8">epit_clock_source_t</a> { <br/>
&#160;&#160;<a class="el" href="group__epit.html#ggac239aba2d70353323bb2ca134cf9a6e8afbe434f8c1eed2f7e26ba29e3fed1a1e">kEPIT_ClockSource_Off</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__epit.html#ggac239aba2d70353323bb2ca134cf9a6e8a72f6579132e278163f67bdce7bfc79f4">kEPIT_ClockSource_Periph</a> = 1U, 
<br/>
&#160;&#160;<a class="el" href="group__epit.html#ggac239aba2d70353323bb2ca134cf9a6e8a52a6b5324b5e603e171df9e69752862b">kEPIT_ClockSource_HighFreq</a> = 2U, 
<br/>
&#160;&#160;<a class="el" href="group__epit.html#ggac239aba2d70353323bb2ca134cf9a6e8a9f0c0a1103173bb4e6d4510570c70ce0">kEPIT_ClockSource_LowFreq</a> = 3U
<br/>
 }</td></tr>
<tr class="memdesc:gac239aba2d70353323bb2ca134cf9a6e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of clock sources.  <a href="group__epit.html#gac239aba2d70353323bb2ca134cf9a6e8">More...</a><br/></td></tr>
<tr class="separator:gac239aba2d70353323bb2ca134cf9a6e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad5ed583fb2580dd3c7e6fb8a17ceb1fb"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gad5ed583fb2580dd3c7e6fb8a17ceb1fb">epit_output_operation_mode_t</a> { <br/>
&#160;&#160;<a class="el" href="group__epit.html#ggad5ed583fb2580dd3c7e6fb8a17ceb1fbae8fe3f8f57511c3443803a760e639807">kEPIT_OutputOperation_Disconnected</a> = 0U, 
<br/>
&#160;&#160;<a class="el" href="group__epit.html#ggad5ed583fb2580dd3c7e6fb8a17ceb1fba74c5712f4e01815dae68f6fd5af93f66">kEPIT_OutputOperation_Toggle</a> = 1U, 
<br/>
&#160;&#160;<a class="el" href="group__epit.html#ggad5ed583fb2580dd3c7e6fb8a17ceb1fbaf79c5829582c23eb1ed8f57f3cbe9f14">kEPIT_OutputOperation_Clear</a> = 2U, 
<br/>
&#160;&#160;<a class="el" href="group__epit.html#ggad5ed583fb2580dd3c7e6fb8a17ceb1fbaf4ac3cf28d7b0a83faa7ac885cd1e872">kEPIT_OutputOperation_Set</a> = 3U
<br/>
 }</td></tr>
<tr class="memdesc:gad5ed583fb2580dd3c7e6fb8a17ceb1fb"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of output compare operation mode.  <a href="group__epit.html#gad5ed583fb2580dd3c7e6fb8a17ceb1fb">More...</a><br/></td></tr>
<tr class="separator:gad5ed583fb2580dd3c7e6fb8a17ceb1fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga494240f7fd37a8bb050b38327441fda6"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga494240f7fd37a8bb050b38327441fda6">epit_interrupt_enable_t</a> { <a class="el" href="group__epit.html#gga494240f7fd37a8bb050b38327441fda6adf2854965c6baa058801152b3cc26e05">kEPIT_OutputCompareInterruptEnable</a> = EPIT_CR_OCIEN_MASK
 }</td></tr>
<tr class="memdesc:ga494240f7fd37a8bb050b38327441fda6"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of EPIT interrupts.  <a href="group__epit.html#ga494240f7fd37a8bb050b38327441fda6">More...</a><br/></td></tr>
<tr class="separator:ga494240f7fd37a8bb050b38327441fda6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e2e35e273fd56379af09c3aca6e9d83"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga6e2e35e273fd56379af09c3aca6e9d83">epit_status_flags_t</a> { <a class="el" href="group__epit.html#gga6e2e35e273fd56379af09c3aca6e9d83abfd8c817c78847675304efcfa5017694">kEPIT_OutputCompareFlag</a> = EPIT_SR_OCIF_MASK
 }</td></tr>
<tr class="memdesc:ga6e2e35e273fd56379af09c3aca6e9d83"><td class="mdescLeft">&#160;</td><td class="mdescRight">List of EPIT status flags.  <a href="group__epit.html#ga6e2e35e273fd56379af09c3aca6e9d83">More...</a><br/></td></tr>
<tr class="separator:ga6e2e35e273fd56379af09c3aca6e9d83"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Driver version</h2></td></tr>
<tr class="memitem:gae37b3cd986619b3bb15c6f6f0fa035e6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gae37b3cd986619b3bb15c6f6f0fa035e6"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gae37b3cd986619b3bb15c6f6f0fa035e6">FSL_EPIT_DRIVER_VERSION</a>&#160;&#160;&#160;(MAKE_VERSION(2, 0, 0))</td></tr>
<tr class="memdesc:gae37b3cd986619b3bb15c6f6f0fa035e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Version 2.0.0. <br/></td></tr>
<tr class="separator:gae37b3cd986619b3bb15c6f6f0fa035e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Software Reset</h2></td></tr>
<tr class="memitem:gab0d0782f29753e2b84ba8586fac279cf"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gab0d0782f29753e2b84ba8586fac279cf">EPIT_SoftwareReset</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:gab0d0782f29753e2b84ba8586fac279cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Software reset of EPIT module.  <a href="#gab0d0782f29753e2b84ba8586fac279cf">More...</a><br/></td></tr>
<tr class="separator:gab0d0782f29753e2b84ba8586fac279cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Initialization and deinitialization</h2></td></tr>
<tr class="memitem:ga2dbbb3bef0505829e167cd8b742f30d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga2dbbb3bef0505829e167cd8b742f30d4">EPIT_Init</a> (EPIT_Type *base, const <a class="el" href="group__epit.html#structepit__config__t">epit_config_t</a> *config)</td></tr>
<tr class="memdesc:ga2dbbb3bef0505829e167cd8b742f30d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ungates the EPIT clock and configures the peripheral for a basic operation.  <a href="#ga2dbbb3bef0505829e167cd8b742f30d4">More...</a><br/></td></tr>
<tr class="separator:ga2dbbb3bef0505829e167cd8b742f30d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabcd8f38b0c3bc2865022044ee898cd8d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gabcd8f38b0c3bc2865022044ee898cd8d">EPIT_Deinit</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:gabcd8f38b0c3bc2865022044ee898cd8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the module and gates the EPIT clock.  <a href="#gabcd8f38b0c3bc2865022044ee898cd8d">More...</a><br/></td></tr>
<tr class="separator:gabcd8f38b0c3bc2865022044ee898cd8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7790809531a745f934e7d8fead880f49"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga7790809531a745f934e7d8fead880f49">EPIT_GetDefaultConfig</a> (<a class="el" href="group__epit.html#structepit__config__t">epit_config_t</a> *config)</td></tr>
<tr class="memdesc:ga7790809531a745f934e7d8fead880f49"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills in the EPIT configuration structure with default settings.  <a href="#ga7790809531a745f934e7d8fead880f49">More...</a><br/></td></tr>
<tr class="separator:ga7790809531a745f934e7d8fead880f49"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Clock source and frequency control</h2></td></tr>
<tr class="memitem:gaee0cba7afa0e5517b52a4ae06b5d9568"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gaee0cba7afa0e5517b52a4ae06b5d9568">EPIT_SetClockSource</a> (EPIT_Type *base, <a class="el" href="group__epit.html#gac239aba2d70353323bb2ca134cf9a6e8">epit_clock_source_t</a> source)</td></tr>
<tr class="memdesc:gaee0cba7afa0e5517b52a4ae06b5d9568"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set clock source of EPIT.  <a href="#gaee0cba7afa0e5517b52a4ae06b5d9568">More...</a><br/></td></tr>
<tr class="separator:gaee0cba7afa0e5517b52a4ae06b5d9568"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacba77bc8918990c64b99ddc72feda31b"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gacba77bc8918990c64b99ddc72feda31b">EPIT_SetClockDivider</a> (EPIT_Type *base, uint32_t divider)</td></tr>
<tr class="memdesc:gacba77bc8918990c64b99ddc72feda31b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set clock divider inside EPIT module.  <a href="#gacba77bc8918990c64b99ddc72feda31b">More...</a><br/></td></tr>
<tr class="separator:gacba77bc8918990c64b99ddc72feda31b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadb6daa6afbecc29071c5a7cb41955060"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gadb6daa6afbecc29071c5a7cb41955060">EPIT_GetClockDivider</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:gadb6daa6afbecc29071c5a7cb41955060"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get clock divider inside EPIT module.  <a href="#gadb6daa6afbecc29071c5a7cb41955060">More...</a><br/></td></tr>
<tr class="separator:gadb6daa6afbecc29071c5a7cb41955060"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Timer Start and Stop</h2></td></tr>
<tr class="memitem:ga350214fb7f3d87c1578f42e802fc39f0"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga350214fb7f3d87c1578f42e802fc39f0">EPIT_StartTimer</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:ga350214fb7f3d87c1578f42e802fc39f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Start EPIT timer.  <a href="#ga350214fb7f3d87c1578f42e802fc39f0">More...</a><br/></td></tr>
<tr class="separator:ga350214fb7f3d87c1578f42e802fc39f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8cbac84e29ccb3b3f0fa21d2d96aa9b9"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga8cbac84e29ccb3b3f0fa21d2d96aa9b9">EPIT_StopTimer</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:ga8cbac84e29ccb3b3f0fa21d2d96aa9b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop EPIT timer.  <a href="#ga8cbac84e29ccb3b3f0fa21d2d96aa9b9">More...</a><br/></td></tr>
<tr class="separator:ga8cbac84e29ccb3b3f0fa21d2d96aa9b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Read and Write the timer period</h2></td></tr>
<tr class="memitem:ga6a72cfa81566464f3b5ab621aba0c5b2"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga6a72cfa81566464f3b5ab621aba0c5b2">EPIT_SetTimerPeriod</a> (EPIT_Type *base, uint32_t ticks)</td></tr>
<tr class="memdesc:ga6a72cfa81566464f3b5ab621aba0c5b2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the timer period in units of count.  <a href="#ga6a72cfa81566464f3b5ab621aba0c5b2">More...</a><br/></td></tr>
<tr class="separator:ga6a72cfa81566464f3b5ab621aba0c5b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad92596ce033f1773fd7b2e273e779e59"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gad92596ce033f1773fd7b2e273e779e59">EPIT_GetCurrentTimerCount</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:gad92596ce033f1773fd7b2e273e779e59"><td class="mdescLeft">&#160;</td><td class="mdescRight">Reads the current timer counting value.  <a href="#gad92596ce033f1773fd7b2e273e779e59">More...</a><br/></td></tr>
<tr class="separator:gad92596ce033f1773fd7b2e273e779e59"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Output Signal Control</h2></td></tr>
<tr class="memitem:ga97b4ace829edec2ef3541cc8151a6d64"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga97b4ace829edec2ef3541cc8151a6d64">EPIT_SetOutputOperationMode</a> (EPIT_Type *base, <a class="el" href="group__epit.html#gad5ed583fb2580dd3c7e6fb8a17ceb1fb">epit_output_operation_mode_t</a> mode)</td></tr>
<tr class="memdesc:ga97b4ace829edec2ef3541cc8151a6d64"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set EPIT output compare operation mode.  <a href="#ga97b4ace829edec2ef3541cc8151a6d64">More...</a><br/></td></tr>
<tr class="separator:ga97b4ace829edec2ef3541cc8151a6d64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafc188ac8862d933602765cc0f07f5fe7"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gafc188ac8862d933602765cc0f07f5fe7">EPIT_SetOutputCompareValue</a> (EPIT_Type *base, uint32_t value)</td></tr>
<tr class="memdesc:gafc188ac8862d933602765cc0f07f5fe7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set EPIT output compare value.  <a href="#gafc188ac8862d933602765cc0f07f5fe7">More...</a><br/></td></tr>
<tr class="separator:gafc188ac8862d933602765cc0f07f5fe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Interrupt Interface</h2></td></tr>
<tr class="memitem:gae3d3bbc506959dac88740857841c14eb"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#gae3d3bbc506959dac88740857841c14eb">EPIT_EnableInterrupts</a> (EPIT_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:gae3d3bbc506959dac88740857841c14eb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables the selected EPIT interrupts.  <a href="#gae3d3bbc506959dac88740857841c14eb">More...</a><br/></td></tr>
<tr class="separator:gae3d3bbc506959dac88740857841c14eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga209d95f22d7a0721c26d33e1e99f587c"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga209d95f22d7a0721c26d33e1e99f587c">EPIT_DisableInterrupts</a> (EPIT_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga209d95f22d7a0721c26d33e1e99f587c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables the selected EPIT interrupts.  <a href="#ga209d95f22d7a0721c26d33e1e99f587c">More...</a><br/></td></tr>
<tr class="separator:ga209d95f22d7a0721c26d33e1e99f587c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1129e4997506f2aee199355de4bd44ae"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga1129e4997506f2aee199355de4bd44ae">EPIT_GetEnabledInterrupts</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:ga1129e4997506f2aee199355de4bd44ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the enabled EPIT interrupts.  <a href="#ga1129e4997506f2aee199355de4bd44ae">More...</a><br/></td></tr>
<tr class="separator:ga1129e4997506f2aee199355de4bd44ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Status Interface</h2></td></tr>
<tr class="memitem:ga105921f3411da627b278a180d9738d1a"><td class="memItemLeft" align="right" valign="top">static uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga105921f3411da627b278a180d9738d1a">EPIT_GetStatusFlags</a> (EPIT_Type *base)</td></tr>
<tr class="memdesc:ga105921f3411da627b278a180d9738d1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the EPIT status flags.  <a href="#ga105921f3411da627b278a180d9738d1a">More...</a><br/></td></tr>
<tr class="separator:ga105921f3411da627b278a180d9738d1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga616724ec04f71fbee024a4439aabc9f0"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ga616724ec04f71fbee024a4439aabc9f0">EPIT_ClearStatusFlags</a> (EPIT_Type *base, uint32_t mask)</td></tr>
<tr class="memdesc:ga616724ec04f71fbee024a4439aabc9f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the EPIT status flags.  <a href="#ga616724ec04f71fbee024a4439aabc9f0">More...</a><br/></td></tr>
<tr class="separator:ga616724ec04f71fbee024a4439aabc9f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/><h2 class="groupheader">Data Structure Documentation</h2>
<a name="structepit__config__t" id="structepit__config__t"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct epit_config_t</td>
        </tr>
      </table>
</div><div class="memdoc">
<div class="textblock"></div><table class="memberdecls">
<tr><td colspan="2"><h3>Data Fields</h3></td></tr>
<tr class="memitem:a194c8be89d61e89ca2f83e407f0b8944"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__epit.html#gac239aba2d70353323bb2ca134cf9a6e8">epit_clock_source_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#a194c8be89d61e89ca2f83e407f0b8944">clockSource</a></td></tr>
<tr class="memdesc:a194c8be89d61e89ca2f83e407f0b8944"><td class="mdescLeft">&#160;</td><td class="mdescRight">clock source for EPIT module.  <a href="#a194c8be89d61e89ca2f83e407f0b8944">More...</a><br/></td></tr>
<tr class="separator:a194c8be89d61e89ca2f83e407f0b8944"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1370839f1b65365eccd7951607a8f70f"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#a1370839f1b65365eccd7951607a8f70f">divider</a></td></tr>
<tr class="memdesc:a1370839f1b65365eccd7951607a8f70f"><td class="mdescLeft">&#160;</td><td class="mdescRight">clock divider (prescaler+1) from clock source to counter.  <a href="#a1370839f1b65365eccd7951607a8f70f">More...</a><br/></td></tr>
<tr class="separator:a1370839f1b65365eccd7951607a8f70f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea0d7708bf36e458c82c660b0cab1595"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#aea0d7708bf36e458c82c660b0cab1595">enableRunInStop</a></td></tr>
<tr class="memdesc:aea0d7708bf36e458c82c660b0cab1595"><td class="mdescLeft">&#160;</td><td class="mdescRight">EPIT enabled in stop mode.  <a href="#aea0d7708bf36e458c82c660b0cab1595">More...</a><br/></td></tr>
<tr class="separator:aea0d7708bf36e458c82c660b0cab1595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06063bff95b6edd9505231f2de391c22"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#a06063bff95b6edd9505231f2de391c22">enableRunInWait</a></td></tr>
<tr class="memdesc:a06063bff95b6edd9505231f2de391c22"><td class="mdescLeft">&#160;</td><td class="mdescRight">EPIT enabled in wait mode.  <a href="#a06063bff95b6edd9505231f2de391c22">More...</a><br/></td></tr>
<tr class="separator:a06063bff95b6edd9505231f2de391c22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac27c3331ea751935d813bb88821a7788"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#ac27c3331ea751935d813bb88821a7788">enableRunInDbg</a></td></tr>
<tr class="memdesc:ac27c3331ea751935d813bb88821a7788"><td class="mdescLeft">&#160;</td><td class="mdescRight">EPIT enabled in debug mode.  <a href="#ac27c3331ea751935d813bb88821a7788">More...</a><br/></td></tr>
<tr class="separator:ac27c3331ea751935d813bb88821a7788"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d3cce418da1cbbd5a9ac92646fa1ba1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#a0d3cce418da1cbbd5a9ac92646fa1ba1">enableCounterOverwrite</a></td></tr>
<tr class="memdesc:a0d3cce418da1cbbd5a9ac92646fa1ba1"><td class="mdescLeft">&#160;</td><td class="mdescRight">set timer period results in counter value being overwritten.  <a href="#a0d3cce418da1cbbd5a9ac92646fa1ba1">More...</a><br/></td></tr>
<tr class="separator:a0d3cce418da1cbbd5a9ac92646fa1ba1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7168c7c6478a7eb8356f6d765fc95ace"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#a7168c7c6478a7eb8356f6d765fc95ace">enableFreeRun</a></td></tr>
<tr class="memdesc:a7168c7c6478a7eb8356f6d765fc95ace"><td class="mdescLeft">&#160;</td><td class="mdescRight">true: free-running mode, counter will be reset to 0xFFFFFFFF when timer expires; false: set-and-forget mode, counter will be reloaded from set timer periods.  <a href="#a7168c7c6478a7eb8356f6d765fc95ace">More...</a><br/></td></tr>
<tr class="separator:a7168c7c6478a7eb8356f6d765fc95ace"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07824ad94357ee40b748c7bafe1d9c2b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__epit.html#a07824ad94357ee40b748c7bafe1d9c2b">enableResetMode</a></td></tr>
<tr class="memdesc:a07824ad94357ee40b748c7bafe1d9c2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">true: counter is reset to timer periods in set-and-forget mode or 0xFFFFFFFF in free-running mode when enabled; false: counter restores the value that it was disabled when enabled.  <a href="#a07824ad94357ee40b748c7bafe1d9c2b">More...</a><br/></td></tr>
<tr class="separator:a07824ad94357ee40b748c7bafe1d9c2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h4 class="groupheader">Field Documentation</h4>
<a class="anchor" id="a194c8be89d61e89ca2f83e407f0b8944"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__epit.html#gac239aba2d70353323bb2ca134cf9a6e8">epit_clock_source_t</a> epit_config_t::clockSource</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a1370839f1b65365eccd7951607a8f70f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32_t epit_config_t::divider</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aea0d7708bf36e458c82c660b0cab1595"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool epit_config_t::enableRunInStop</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a06063bff95b6edd9505231f2de391c22"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool epit_config_t::enableRunInWait</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac27c3331ea751935d813bb88821a7788"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool epit_config_t::enableRunInDbg</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0d3cce418da1cbbd5a9ac92646fa1ba1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool epit_config_t::enableCounterOverwrite</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7168c7c6478a7eb8356f6d765fc95ace"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool epit_config_t::enableFreeRun</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a07824ad94357ee40b748c7bafe1d9c2b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool epit_config_t::enableResetMode</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="gac239aba2d70353323bb2ca134cf9a6e8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__epit.html#gac239aba2d70353323bb2ca134cf9a6e8">epit_clock_source_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section note"><dt>Note</dt><dd>Actual number of clock sources is SoC dependent </dd></dl>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggac239aba2d70353323bb2ca134cf9a6e8afbe434f8c1eed2f7e26ba29e3fed1a1e"></a>kEPIT_ClockSource_Off</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Clock Source Off. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac239aba2d70353323bb2ca134cf9a6e8a72f6579132e278163f67bdce7bfc79f4"></a>kEPIT_ClockSource_Periph</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Clock Source from Peripheral Clock. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac239aba2d70353323bb2ca134cf9a6e8a52a6b5324b5e603e171df9e69752862b"></a>kEPIT_ClockSource_HighFreq</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Clock Source from High Frequency Reference Clock. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggac239aba2d70353323bb2ca134cf9a6e8a9f0c0a1103173bb4e6d4510570c70ce0"></a>kEPIT_ClockSource_LowFreq</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Clock Source from Low Frequency Reference Clock. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="gad5ed583fb2580dd3c7e6fb8a17ceb1fb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__epit.html#gad5ed583fb2580dd3c7e6fb8a17ceb1fb">epit_output_operation_mode_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="ggad5ed583fb2580dd3c7e6fb8a17ceb1fbae8fe3f8f57511c3443803a760e639807"></a>kEPIT_OutputOperation_Disconnected</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Output Operation: Disconnected from pad. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad5ed583fb2580dd3c7e6fb8a17ceb1fba74c5712f4e01815dae68f6fd5af93f66"></a>kEPIT_OutputOperation_Toggle</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Output Operation: Toggle output pin. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad5ed583fb2580dd3c7e6fb8a17ceb1fbaf79c5829582c23eb1ed8f57f3cbe9f14"></a>kEPIT_OutputOperation_Clear</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Output Operation: Clear output pin. </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="ggad5ed583fb2580dd3c7e6fb8a17ceb1fbaf4ac3cf28d7b0a83faa7ac885cd1e872"></a>kEPIT_OutputOperation_Set</em>&nbsp;</td><td class="fielddoc">
<p>EPIT Output Operation: Set putput pin. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga494240f7fd37a8bb050b38327441fda6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__epit.html#ga494240f7fd37a8bb050b38327441fda6">epit_interrupt_enable_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga494240f7fd37a8bb050b38327441fda6adf2854965c6baa058801152b3cc26e05"></a>kEPIT_OutputCompareInterruptEnable</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare interrupt enable. </p>
</td></tr>
</table>

</div>
</div>
<a class="anchor" id="ga6e2e35e273fd56379af09c3aca6e9d83"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__epit.html#ga6e2e35e273fd56379af09c3aca6e9d83">epit_status_flags_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga6e2e35e273fd56379af09c3aca6e9d83abfd8c817c78847675304efcfa5017694"></a>kEPIT_OutputCompareFlag</em>&nbsp;</td><td class="fielddoc">
<p>Output Compare flag. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gab0d0782f29753e2b84ba8586fac279cf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_SoftwareReset </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga2dbbb3bef0505829e167cd8b742f30d4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EPIT_Init </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__epit.html#structepit__config__t">epit_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function issues a software reset to reset all the registers to their reset values, except for the EN, ENMOD, STOPEN, WAITEN and DBGEN bits in Control register.</p>
<dl class="section note"><dt>Note</dt><dd>This API should be called at the beginning of the application using the EPIT driver.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
    <tr><td class="paramname">config</td><td>Pointer to the user configuration structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gabcd8f38b0c3bc2865022044ee898cd8d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EPIT_Deinit </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga7790809531a745f934e7d8fead880f49"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void EPIT_GetDefaultConfig </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__epit.html#structepit__config__t">epit_config_t</a> *&#160;</td>
          <td class="paramname"><em>config</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>The default values are: </p>
<div class="fragment"><div class="line">*    config-&gt;clockSource = <a class="code" href="group__epit.html#ggac239aba2d70353323bb2ca134cf9a6e8a72f6579132e278163f67bdce7bfc79f4">kEPIT_ClockSource_Periph</a>;</div>
<div class="line">*    config-&gt;divider = 1U;</div>
<div class="line">*    config-&gt;enableRunInStop = <span class="keyword">true</span>;</div>
<div class="line">*    config-&gt;enableRunInWait = <span class="keyword">true</span>;</div>
<div class="line">*    config-&gt;enableRunInDbg = <span class="keyword">false</span>;</div>
<div class="line">*    config-&gt;enableCounterOverwrite = <span class="keyword">false</span>;</div>
<div class="line">*    config-&gt;enableFreeRun = <span class="keyword">false</span>;</div>
<div class="line">*    config-&gt;enableResetMode = <span class="keyword">true</span>;</div>
<div class="line">* </div>
</div><!-- fragment --> <dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">config</td><td>Pointer to the user configuration structure. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gaee0cba7afa0e5517b52a4ae06b5d9568"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_SetClockSource </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__epit.html#gac239aba2d70353323bb2ca134cf9a6e8">epit_clock_source_t</a>&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
    <tr><td class="paramname">source</td><td>clock source to switch to. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gacba77bc8918990c64b99ddc72feda31b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_SetClockDivider </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>divider</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
    <tr><td class="paramname">divider</td><td>Clock divider in EPIT module (1-4096, divider = prescaler + 1). </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gadb6daa6afbecc29071c5a7cb41955060"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t EPIT_GetClockDivider </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT base pointer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>clock divider in EPIT module (1-4096). </dd></dl>

</div>
</div>
<a class="anchor" id="ga350214fb7f3d87c1578f42e802fc39f0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_StartTimer </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga8cbac84e29ccb3b3f0fa21d2d96aa9b9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_StopTimer </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga6a72cfa81566464f3b5ab621aba0c5b2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_SetTimerPeriod </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>ticks</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Timers begin counting down from the value set by this function until it reaches 0, at which point it generates an interrupt and loads this register value again. When enableCounterOverwrite is false, writing a new value to this register does not restart the timer, and the value is loaded after the timer expires. When enableCounterOverwrite is true, the counter will be set immediately and starting counting down from that value.</p>
<dl class="section note"><dt>Note</dt><dd>User can call the utility macros provided in fsl_common.h to convert to ticks.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
    <tr><td class="paramname">ticks</td><td>Timer period in units of ticks. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gad92596ce033f1773fd7b2e273e779e59"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t EPIT_GetCurrentTimerCount </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This function returns the real-time timer counting value, in a range from 0 to a timer period.</p>
<dl class="section note"><dt>Note</dt><dd>User can call the utility macros provided in fsl_common.h to convert ticks to microseconds or milliseconds.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Current timer counting value in ticks. </dd></dl>

</div>
</div>
<a class="anchor" id="ga97b4ace829edec2ef3541cc8151a6d64"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_SetOutputOperationMode </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__epit.html#gad5ed583fb2580dd3c7e6fb8a17ceb1fb">epit_output_operation_mode_t</a>&#160;</td>
          <td class="paramname"><em>mode</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
    <tr><td class="paramname">mode</td><td>EPIT output compare operation mode. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gafc188ac8862d933602765cc0f07f5fe7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_SetOutputCompareValue </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
    <tr><td class="paramname">value</td><td>EPIT output compare value. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gae3d3bbc506959dac88740857841c14eb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_EnableInterrupts </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address. </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to enable. This is a logical OR of members of the enumeration <a class="el" href="group__epit.html#ga494240f7fd37a8bb050b38327441fda6" title="List of EPIT interrupts. ">epit_interrupt_enable_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga209d95f22d7a0721c26d33e1e99f587c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_DisableInterrupts </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The interrupts to disable. This is a logical OR of members of the enumeration <a class="el" href="group__epit.html#ga494240f7fd37a8bb050b38327441fda6" title="List of EPIT interrupts. ">epit_interrupt_enable_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga1129e4997506f2aee199355de4bd44ae"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t EPIT_GetEnabledInterrupts </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The enabled interrupts. This is the logical OR of members of the enumeration <a class="el" href="group__epit.html#ga494240f7fd37a8bb050b38327441fda6" title="List of EPIT interrupts. ">epit_interrupt_enable_t</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga105921f3411da627b278a180d9738d1a"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static uint32_t EPIT_GetStatusFlags </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The status flags. This is the logical OR of members of the enumeration <a class="el" href="group__epit.html#ga6e2e35e273fd56379af09c3aca6e9d83" title="List of EPIT status flags. ">epit_status_flags_t</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga616724ec04f71fbee024a4439aabc9f0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void EPIT_ClearStatusFlags </td>
          <td>(</td>
          <td class="paramtype">EPIT_Type *&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>mask</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td>EPIT peripheral base address </td></tr>
    <tr><td class="paramname">mask</td><td>The status flags to clear. This is a logical OR of members of the enumeration <a class="el" href="group__epit.html#ga6e2e35e273fd56379af09c3aca6e9d83" title="List of EPIT status flags. ">epit_status_flags_t</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">&copy; 2016 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
